home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / SCROLLDN.CC < prev    next >
Text File  |  1993-04-04  |  568b  |  22 lines

  1. #include <dos.h>
  2. scroll_dn(int trow, int lcol,int brow, int rcol,int attr, int lines)
  3. /* This will scroll the defined window down x number of lines:
  4.    trow=upper left row
  5.    lcol=upper left column
  6.    brow=lower right row
  7.    rcol=lower right col
  8.    lines=number of lines to scroll
  9. */
  10. {
  11.    union REGS inregs;
  12.  
  13.    inregs.h.bh = attr;
  14.    inregs.h.cl = lcol;
  15.    inregs.h.ch = trow;
  16.    inregs.h.dl = rcol;
  17.    inregs.h.dh = brow;
  18.    inregs.h.al = lines;
  19.    inregs.h.ah = 7;                     /* do the backscroll */
  20.    int86(0x10,&inregs,&inregs);
  21. }
  22.